//package com.hncj.yqfk.filter;
//
//import javax.servlet.ServletException;
//import javax.servlet.annotation.WebServlet;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpSession;
//import java.io.IOException;
//@WebServlet("/login")
//public class Login extends HttpServlet {
//    /**
//     *
//     * @param req
//     * @param resp
//     * @throws ServletException
//     * @throws IOException
//     */
//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        String name=req.getParameter("name");
//        String password=req.getParameter("password");
//        if (name.equals("xiaoxuan")&&password.equals("123123")){
//            HttpSession session=req.getSession();
//            session.setAttribute("name",name);
//            resp.sendRedirect("/login.html");
//        }
//    }
//}
